package com.wanghlme.bookstore.bean;

import java.util.Arrays;

public class Kaptcha {
    private int width;
    private int height;
    private int codeCount;
    private char[] codeBytes;

    public Kaptcha() {
    }

    public Kaptcha(int width, int height, int codeCount, char[] codeBytes) {
        this.width = width;
        this.height = height;
        this.codeCount = codeCount;
        this.codeBytes = codeBytes;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getCodeCount() {
        return codeCount;
    }

    public void setCodeCount(int codeCount) {
        this.codeCount = codeCount;
    }

    public char[] getCodeBytes() {
        return codeBytes;
    }

    public void setCodeBytes(char[] codeBytes) {
        this.codeBytes = codeBytes;
    }

    @Override
    public String toString() {
        return "Kaptcha{" +
                "width=" + width +
                ", height=" + height +
                ", codeCount=" + codeCount +
                ", codeBytes=" + Arrays.toString(codeBytes) +
                '}';
    }
}
